﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Recherche_Concert
{
    public class Location
    {
        #region Champs

        protected string rue = "inconnue";
        protected string ville = "inconnue";
        protected string codePostal = "inconnu";
        protected string pays = "inconnu";
        private float longitude = 0;
        protected float lattitude = 0;

        #endregion

#region accesseurs

        public string _rue
        {
            get { return rue; }
            set { rue = value; }
        }

        public string _ville
        {
            get { return ville; }
            set { ville = value; }
        }

        public string _codePostal
        {
            get { return codePostal; }
            set { codePostal = value; }
        }

        public string _pays
        {
            get { return pays; }
            set { pays = value; }
        }

        public float _longitude
        {
            get { return longitude; }
            set { longitude = value; }
        }

        public float _lattitude
        {
            get { return lattitude; }
            set { lattitude = value; }
        }

#endregion
        #region Constructeurs

        public Location() 
        {
        }


        public Location(string ville, float lattitude, float longitude)
        {
            this.ville = ville;           
            this.longitude = longitude;
            this.lattitude = lattitude;
        }

        public Location(string rue, string ville, string codePstal, string pays)
        {
            this.rue = rue;
            this.ville = ville;
            this.codePostal = codePstal;
            this.pays = pays;
        }


        public Location(string rue, string ville, string codePstal, string pays, float lattitude, float longitude)
        {
            this.rue = rue;
            this.ville = ville;
            this.codePostal = codePstal;
            this.pays = pays;
            this.longitude = longitude;
            this.lattitude = lattitude;
        }
        #endregion

    }
}
